﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Votes.ascx.cs" Inherits="SmsVotes.SmsVoting.Votes" %>
<%@ Register Src="../Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="../Footer.ascx" TagName="Footer" TagPrefix="uc1" %>
<uc1:Header ID="Header" runat="server" />
<table class="PAGE" align="center" cellspacing="0" cellpadding="0">
    <tr valign="top">
        <td class="PAGE_BORDER_LEFT">
            <img src="images/body_left_bg.jpg" />
        </td>
        <td>
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
                    <td class="TEXT_LEFT" valign="top">
                        <!-- TEXT -->
                        <h2>
                            SMS-голосование</h2>
                        <table cellpadding="2" cellspacing="2" border="0" align="center">
                            <tr>
                                <td colspan="2" align="center">
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <a href="?cmd=createvote">Создать голосование</a>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <asp:ListView ID="lvVotes" runat="server" OnItemCommand="lvVotes_ItemCommand">
                                        <LayoutTemplate>
                                            <div id="itemPlaceholder" runat="server">
                                            </div>
                                        </LayoutTemplate>
                                        <ItemTemplate>
                                            <div>
                                                <%# Eval("Name") %><br />
                                                <a href='?cmd=runvote&vid=<%# Eval("ID") %>'>Начать</a> <a href='?cmd=editvote&vid=<%# Eval("ID") %>'>
                                                    Редактировать</a>
                                                <asp:LinkButton ID="lbtnDeleteVote" runat="server" Text="Удалить" CommandName="deletevote"
                                                    OnClientClick="return confirm('Вы действительно хотите удалить голосование?');"
                                                    CommandArgument='<%# Eval("ID") %>'></asp:LinkButton>
                                            </div>
                                        </ItemTemplate>
                                    </asp:ListView>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <a href="?cmd=history">История голосований</a>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <a href="#">Оплата услуг</a>
                                </td>
                            </tr>
                        </table>
                        <!-- TEXT -->
                    </td>
                    <td width="1" background="../images/splitter.jpg">
                        <img src="../images/splitter_top.jpg" />
                    </td>
                    <td class="TEXT_RIGHT" valign="top">
                        <!-- Navigation -->
                        <img src="../images/spacer2.gif" />
                    </td>
                </tr>
            </table>
        </td>
        <td class="PAGE_BORDER_RIGHT">
            <img src="images/body_right_bg.jpg">
        </td>
    </tr>
</table>
<uc1:Footer ID="Footer1" runat="server" />
